import { request } from "@/utils/service"

/** 上传文件 */
export function upLoadFile(data: any) {
  return request<any>({
    // url: "/file/upLoadFile",
    url: "/file/minioUpload",
    method: "post",
    data,
    headers: {
      "Content-Type": "multipart/form-data"
    }
  })
}

/** 下载文件 */
export function download(data: any) {
  return request<any>({
    url: "/file/upLoadFile",
    method: "get",
    data
  })
}
/** 下载文件 */
export function getFile(url: string, data: any) {
  return request<any>({
    url: url, //"/file/getFile",
    method: "get",
    data
  })
}
